{% extends "mall_base.html" %}
{% block title %}
    <title>用户注册</title>
{% endblock %}

{% block content%}

<!--用户注册界面-->
<div class="container">
    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <form action="/register/" method="post" class="form-signin">
                {% csrf_token %}
                <h2 class="form-signin-heading">用户注册</h2>
                <label for="inputEmail" class="sr-only">用户名</label>
                <input type="text" name="username" id="inputEmail" class="form-control" placeholder="用户名" required autofocus><br>
                <label for="inputPassword" class="sr-only">密码</label>
                <input type="password" name="password" id="inputPassword" class="form-control" placeholder="密码" required><br>
                <label for="inputPassword_2" class="sr-only">请确认密码</label>
                <input type="password" name="password_2" id="inputPassword_2" class="form-control" placeholder="再次输入密码" required>
                <div class="checkbox">
                </div>
                <button class="btn btn-lg btn-primary btn-block" type="submit">注册</button><span style="color: #c12e2a">{{ enroll_error }}</span>
            </form>
        </div>
    </div>
</div>

{% endblock %}
